﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PyramidShadow
{
    class PS_Event_ResetBlocks : PS_Event
    {
        private Level level;
        public PS_Event_ResetBlocks(Level level)
        {
            this.level = level;
        }

        public override void doIt()
        {
            List<LevelObject> list = level.map.Levelobjects;
            foreach(LevelObject lo in list)
            {
                Block block = lo as Block;
                if (block != null)
                {
                    if (block.Active)
                        block.reset();
                }
            }
        }
    }
}
